package com.basker.pisces.orm.statement;

import org.apache.commons.lang3.ArrayUtils;

public class SqlStatement {
    private String sql;
    private Object[] arguments;
    private int[] argumentTypes;

    public SqlStatement(String sql) {
        this(sql, ArrayUtils.EMPTY_OBJECT_ARRAY);
    }

    public SqlStatement(String sql, Object[] arguments) {
        this(sql, arguments, ArrayUtils.EMPTY_INT_ARRAY);
    }

    public SqlStatement(String sql, Object[] arguments, int[] argumentTypes) {
        this.sql = sql;
        this.arguments = arguments;
        this.argumentTypes = argumentTypes;
    }

    public Object[] getArguments() {
        return arguments;
    }

    public int[] getArgumentTypes() {
        return argumentTypes;
    }

    public String getSql() {
        return sql;
    }

}
